# for i in (10, 20, 30):
#     print(i * 3)

# todo 计算1-100的奇数和偶数和总和
sum1 = 0  # 总和
odd = 0  # 奇数
even = 0  # 偶数
for a in range(101):
    sum1 += a
    if a % 2 == 1:
        odd += a
    else:
        even += a
print(f"1-100之间总数为:{sum1},奇数为:{odd},偶数为:{even}")

# todo 打印键值对
c = {
    "name": "张山",
    "age": 18,
    "job": "程序员"
}
for x in c:
    print(x)
for x in c.keys():
    print(x)
for x in c.values():
    print(x)
for x in c.items():
    print(x)









